import request from './request.js'

const user = {
	login(data) {
		return request.post('/api/v1/member/Login', data)
	},
	wxPay(data) {
		return request.post('/api/v1/member/pay', data)
	},
	//绑定订单
	bindOrder(data) {
		return request.get('/api/v1/member/bindOrder', {
			data
		})
	},
	//授权获取手机号
	getPhone(data) {
		return request.post('/api/v1/member/getPhoneNumber', data)
	},
	//提现
	withdrawal(data) {
		return request.post('/api/v1/member/withdrawal', data)
	},
	//钱包收支记录
	getMoneyRecord(data) {
		return request.get('/api/v1/rebate/getMoneyRecord', {data})
	},
	getUserInfo() {
		return request.get('/api/v1/member/nameInfo')
	},
	editMemberInfo(data) {
		return request.post('/api/v1/member/editMemberInfo', data)
	},
	//检查权益(是否弹窗）
	checkProfit(){
		return request.get('/api/v1/rebate/checkProfit')
	},
	//领取权益
	acceptProfit(data) {
		return request.post('/api/v1/rebate/acceptProfit',data)
	},
	//放弃权益
	rejectProfit(data) {
		return request.post('/api/v1/rebate/rejectProfit',data)
	},
	//检查订单是否支付
	checkOrderPayState(data) {
		return request.get('/api/v1/member/checkOrderPayState',{data})
	},
}
export default user